__author__ = 'Forcs'

from django.conf.urls import url, include

from wancake.resmng import main as resmng_main
from wancake.weixin import main as weixin_main
from wancake.auth import main as auth_main
from wancake.epgsync import main as sync_main

import views
import wancake.cakeaction.views as ac_views

urlpatterns = [
    url(r'^index$', views.index),
    url(r'^login$', views.login),
    url(r'^dologin$', views.dologin),
    url(r'^dologout$', views.dologout),
    url(r'^productdetails$', views.product_details),
    url(r'^orderrecord$', views.order_record),
    url(r'^userlist$', views.user_list),
    url(r'^getindexdigest', views.get_digest),
    url(r'^getindex30daypv$', views.get_index_30day_pv),
    url(r'^getindexbusinessstatis$', views.get_index_business_data),
    url(r'^getorderhistory$', views.get_order_history),
    url(r'^getproductdetails', views.get_product_details_data),
    url(r'^epgsyncer', views.epg_syncer),
    url(r'^getepgsyncrecord', views.get_epg_sync_record),
    url(r'^syncepg$', views.save_epg_tables),
    url(r'^clearepg$', views.clear_epg_tables),
    url(r'^reportaction/(?P<type>\S+)$', ac_views.report_action),
    url(r'^genappkey$', views.gen_app_key),
    url(r'^relateproductwithcategory$', views.relate_product_with_category),
    url(r'^resourcemanagement$', views.get_res_mng_index),

    url(r'^resmng/', include(resmng_main.resmng.urls)),
    url(r'^weixin/', include(weixin_main.weixin.urls)),
    url(r'^auth/', include(auth_main.auth.urls)),
    url(r'^syncer/', include(sync_main.epg_sync.urls)),

    url(r'^epgorderinfo$', views.epg_order_record_info),

]
